Skip to content

Add leftrelease override to call the activatenode method on single click - #246

Merged
ryanoasis merged 1 commit into
ryanoasis:masterfrom
Matrix86:master
Feb 10, 2019
Merged

ryanoasis merged 1 commit into
ryanoasis:masterfrom
Matrix86:master

Conversation

@Matrix86

@Matrix86 Matrix86 commented Sep 30, 2018 •

Copy link
Copy Markdown
Collaborator

Requirements (please check off with 'x')

What does this Pull Request (PR) do?

When you open a directory on the nerdtree plugin the directory icon doesn't open. This PR permits to call the activatenode method on the single click, when the user try to open a directory.

How should this be manually tested?

Try to open a directory on nerdtree plugin. The icon will change with on the single click event.

Any background context you can provide?

I don't think you need other info.

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

image

@ryanoasis

Copy link
Copy Markdown
Owner

I realize that with this double click will obviously not be the way to open the directories but I think this might be preferable. Do you have any info on that?

So far this looks good to me...

@ryanoasis
ryanoasis merged commit ab417e7 into ryanoasis:master Feb 10, 2019
@der-flo

der-flo commented Mar 8, 2019

Copy link
Copy Markdown

In my opinion this change collides with let g:NERDTreeMouseMode = 1, which is the default.

https://github.com/scrooloose/nerdtree/blob/master/doc/NERDTree.txt says:

If set to 1 then a double click on a node is required to open it.

Nope, with this commit and let g:DevIconsEnableFoldersOpenClose = 1 single clicks instead of double clicks open dir nodes.

Matrix86 added a commit to Matrix86/vim-devicons that referenced this pull request Mar 8, 2019
@Matrix86

Matrix86 commented Mar 8, 2019

Copy link
Copy Markdown
Collaborator Author

In my opinion this change collides with let g:NERDTreeMouseMode = 1, which is the default.

https://github.com/scrooloose/nerdtree/blob/master/doc/NERDTree.txt says:

If set to 1 then a double click on a node is required to open it.

Nope, with this commit and let g:DevIconsEnableFoldersOpenClose = 1 single clicks instead of double clicks open dir nodes.

You're right! My bad...I hope the new PR can fix the problem.

@ryanoasis

Copy link
Copy Markdown
Owner

Thanks. I just felt I wanted to get your work in but I'll review your other PR when able

ryanoasis added a commit that referenced this pull request Jun 23, 2019
#246: fix override when the g:NERDTreeMouseMode = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants